home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
amigan
/
amigan 10
/
driver-maker
/
myprinter.dat
next >
Wrap
Text File
|
1994-01-27
|
14KB
|
359 lines
Printer specific data for the Amiga printer driver.
===================================================
Printer: NEC P6/CP6/P7/CP7 by Jørgen Thomsen 870122
(Please, also read PrmFil.doc in addition to the comments here.
The program analyzing this file is looking for b/w/l/s followed by
a colon to mark the start of a parameter. Keep ALL parameters. If not
needed keep unchanged or in case of strings, delete the contents of the
string, but keep the s<colon> mark. Do NOT add comments after escape
sequences specified after s<colon>).
Comment, Data type(byte,word,long,string), Data
Version w: 1
Revision w: 0
Printer Class (add values)
(0=alphanum,1=graphics,2=color) b: 3
Color Class (your "ribbon" colors)
Black, White, Yellow, Magenta, Cyan
(1(BWonly),2(YMC),3(BWorYMC),4(BYMC))
If your printer uses Red, Green, Blue
instead then add 8 to above values
and use AmigaDOS 1.2 b: 4
No of Pica size chars on Narrow Tractor b: 80
No of char sets b: 4
No of seconds before timeout l: 30
Pica size (SHORP0, 0.01 Chars Per Inch) w: 1000
Elite size (SHORP2, 0.01 Chars Per Inch) w: 1200
Fine size (SHORP4, 0.01 Chars Per Inch) w: 2000
Specify paper parameters as you like. The
following values are the standard ones
US letter size
Width (0.01 inch) w: 800
Length (0.01 inch) w: 1100
Lines to skip at perforation at 6 LPI w: 6
RIN (2nd string, after delay etc.) s:^[T^[U^0^[R^0
US legal size
Width (0.01 inch) w: 800
Length (0.01 inch) w: 1400
Lines to skip at perforation at 6 LPI w: 6
RIN (2nd string, after delay) s:^[T^[U^0^[R^0
Narrow tractor
Width, narrow (0.01 inch) w: 800
Length, narrow (0.01 inch) w: 0 (usually 0 = infinite)
Lines to skip at perforation at 6 LPI w: 6
RIN (2nd string, after delay) s:^[T^[U^0^[R^0
Wide tractor
Width (0.01 inch) w: 1360
Length (0.01 inch) w: 0 (usually 0 = infinite)
Lines to skip at perforation at 6 LPI w: 6
RIN (2nd string, after delay) s:^[T^[U^0^[R^0
Custom paper
Width (0.01 inch) w: 800
Length (0.01 inch) w: 1100
Lines to skip at perforation at 6 LPI w: 6
RIN (2nd string, after delay, see below) s:^[T^[U^0^[a^3
Partial line up/down length
(0.01 printer units at 6 LPI) w: 1500
Colors for SFC and SBC:
(use ^p2 or ^d2 to access them) NEC CP6
No. 0 (30/40) b: 0 black
-- 1 (31/41) b: 1 magenta
-- 2 . b: 2 cyan
-- 3 . b: 3 violet
-- 4 . b: 4 yellow
-- 5 . b: 5 orange
-- 6 . b: 6 green
-- 7 . b: 7 brown
-- 8 . b: 0 black
-- 9 (39/49) b: 0 black
Conversion Table
(^X = ctrl-X, etc.
^[ = ESC,
^\ = FS,
^<octal digits> = byte value,
^^ = ^
Certain parameters are followed by 1 or more numerical values as
parameters e.g. SLRM. They are stored in P[0], P[1] etc. and may
be accessed by inserting the following commands (e.g. ^p1)
^px = insert parameter byte P[x] as a binary byte here
^dx = insert parameter byte P[x] as three decimal characters here
^wx = insert parameter bytes P[x], P[x+1] as 5 decimal characters here
Write string immediately after colon on one line only.
An empty string after colon specifies no simple conversion possible.
The SPACE character is significant.)
Amiga Your Printer
RIS ^[c reset s:^\@
RIN ^[#1 initialize
(common to all paper sizes excpt. custom
[see RIN below] followed by
a delay of 2 seconds,
VERPx, SHORPx, DENx, PROPx, SLRM, SLPP, PERFx
RIN (2nd string) as defined above)
s:^[@
IND ^[D line feed s:^12
NEL ^[E return line feed s:^15^12
RI ^[M reverse line feed s:^\R^12^\F
SGR0 ^[[0m normal character set s:^[5^[-^0^[F
SGR3 ^[[3m italics on s:^[4
SGR23 ^[[23m italics off s:^[5
SGR4 ^[[4m underline on s:^[-^1
SGR24 ^[[24m underline off s:^[-^0
SGR1 ^[[1m boldface on s:^[E
SGR22 ^[[22m boldface off s:^[F
SFC ^[[3nm n=0-9 set foregr. color s:^[r^p2
SBC ^[[4nm n=0-9 set background col. s:
SHORP0 ^[[0w normal pitch s:^22^[W^0^[P
SHORP2 ^[[2w elite on s:^[M^22
SHORP1 ^[[1w elite off s:^[P
SHORP4 ^[[4w condensed fine on s:^[M^17
SHORP3 ^[[3w condensed off s:^22^[P
SHORP6 ^[[6w enlarged on s:^[W^1
SHORP5 ^[[5w enlarged off s:^[W^0
DEN6 ^[[6"z shadow print on s:^[E
DEN5 ^[[5"z shadow print off s:^[F
DEN4 ^[[4"z doublestrike on s:^[G
DEN3 ^[[3"z doublestrike off s:^[H
DEN2 ^[[2"z near letter quality on s:^[x^1^[R^0
DEN1 ^[[1"z near letter quality off s:^[x^0^[R^0
SUS2 ^[[2v superscript on s:^[S^0
SUS1 ^[[1v superscript off s:^[T
SUS4 ^[[4v subscript on s:^[S^1
SUS3 ^[[3v subscript off s:^[T
SUS0 ^[[0v normalize the line s:^[T
PLU ^[L partial line up s:^[j^p0
PLD ^[K partial line down s:^[J^p0
FNT0 ^[(B US char set s:^[R^0
FNT1 ^[(R French char set s:^[R^1
FNT2 ^[(K German char set s:^[R^2
FNT3 ^[(A UK char set s:^[R^3
FNT4 ^[(E Danish I s:^[R^4
FNT5 ^[(H Swedish s:^[R^5
FNT6 ^[(Y Italian s:^[R^6
FNT7 ^[(Z Spanish s:^[R^7
FNT8 ^[(J Japanese s:^[R^10
FNT9 ^[(6 Norwegian s:^[R^11
FNT10 ^[(C Danish II s:^[R^12
PROP2 ^[[2p proportional on s:^[p^1
PROP1 ^[[1p proportional off s:^[p^0
PROP0 ^[[0p proportional clear s:
TSS ^[[n E set proportional offset s:^[ ^p0
JFY5 ^[[5 F auto left justify s:^[x^1^[a^0
JFY7 ^[[7 F auto right justify s:^[x^1^[a^2
JFY6 ^[[6 F auto full justify s:^[x^1^[a^3
JFY0 ^[[0 F auto justify off s:^[x^0
JFY3 ^[[3 F letter space, justify s:
JFY1 ^[[1 F word fill, auto center s:^[x^1^[a^1
VERP0 ^[[0z 1/8" line spacing s:^[0
VERP1 ^[[1z 1/6" line spacing s:^[2
SLPP ^[[nt set form length n s:^[C^p0
PERF ^[[nq perf skip n (n > 0) s:^[N^p0
PERF0 ^[[0q perf skip off s:^[O
LMS ^[#9 left margin set s:
RMS ^[#0 right margin set s:
TMS ^[#8 top margin set s:
BMS ^[#2 bottom margin set s:
STBM ^[[Pn1;Pn2r top & bottom margins s:
SLRM ^[[Pn1;Pn2s left & right margins s:^[l^p2^[Q^p3
CAM ^[#3 clear margins s:^[l^p2^[Q^p3
HTS ^[H set horiz tab s:
VTS ^[J set vertical tab s:
TBC0 ^[[0g clear horiz tab s:
TBC3 ^[[3g clear all horiz tab s:^[D^0
TBC1 ^[[1g clear vertical tab s:
TBC4 ^[[4g clear all vertical tabs s:^[B^0
TBCALL ^[#4 clear all hor & vert tabs s:^[D^0^[B^0
TBSALL ^[#5 set default tabs s:^[e0^3^[e1^5
EXTEND ^[[Pn"x extended commands s:
The following are sequences needed for the printer specific code
(only to be used when the full featured driver is generated)
RIN (custom paper, 1st string,
before 2 sec. delay followed
by RIN (2nd string) above) s:
1. available for EXTEND ^[[1"x s:
2. available for EXTEND ^[[2"x s:
3. available for EXTEND ^[[3"x s:
4. available for EXTEND ^[[4"x s:
5. available for EXTEND ^[[5"x s:
6. available for EXTEND ^[[6"x s:
7. available for EXTEND ^[[7"x s:
8. available for EXTEND ^[[8"x s:
9. available for EXTEND ^[[9"x s:
10. available for EXTEND ^[[10"x s:
Density 1 (default at Draft, 6 LPI) graphics
No of Raster Rows (pins) on each pass w: 8
Max dots in X direction l: 480 (8 * 60)
Max dots in Y direction (0=infinite) l: 0
Dots pr inch in X direction w: 60
Dots pr inch in Y direction w: 60
(the above parameters is used by AmigaDOS. Make sure, that they are
in accordance with the graphics mode parameters included in the
color prefixes below and sent to the printer)
Storage of dots in buffer
(and sending the data to the printer)
0: row by row (some laser/ink jet)
1: column by column (dot matrix) b: 1
Fill buffer bytes from
0: right to left, 1: left to right b: 1
In 320 x 200 resolution the ratio pixel
height/width = 1.2 on a monitor with the
vertical height adjusted to let the monitor
screen be totally filled by the picture.
Some programs believe the ratio is 1
(e.g DPaint) so if you primarily want
to print proper squares
and circles drawn by these programs
specify here the divisor to divide into
the real pixel height to give the
pixel height used by these programs.
Pixel height divisor * 100
(e.g. DPaint 120, monitor image 100) w: 120
Sequence for printing colors
(combination of ALL values 1,2,3,4;
specifies sequence of color data in print buffer;
colors for RGB printers in [...];,
leave as is for black/white printers)
Print black [white] as no. b: 4
--- yellow [blue] as no. b: 1
--- magenta (redish) [green] as no. b: 2
--- cyan (blueish) [red] as no. b: 3
Color black [white] prefix s:^15^[r^0^[*^0^p1^p0
Color yellow [blue] prefix s:^15^[r^4^[*^0^p1^p0
Color magenta [green] prefix s:^15^[r^1^[*^0^p1^p0
Color cyan [red] prefix s:^15^[r^2^[*^0^p1^p0
Init graphics before delay s:^\3^60^[U^1^[j^30^15^12
Init graphics after delay s:
Each single buffer terminated by s:^15^12
Finish graphics dump s:
Density 2 (default at Draft, 8 LPI) graphics
No of Raster Rows (pins) on each pass w: 24
Max dots in X direction l: 720
Max dots in Y direction (0=infinite) l: 0
Dots pr inch in X direction w: 90
Dots pr inch in Y direction w: 180
Storage of dots in buffer
0: row by row (some laser/ink jet)
1: coloumn by column (dot matrix) b: 1
Fill buffer bytes from
0: right to left, 1: left to right b: 1
Pixel height divisor * 100
(e.g. DPaint 120, monitor image 100) w: 120
Sequence for printing colors
Print black as no. b: 4
--- yellow as no. b: 1
--- magenta (redish) as no. b: 2
--- cyan (blueish) as no. b: 3
Color black prefix s:^15^[r^0^[*^46^p1^p0
Color yellow prefix s:^15^[r^4^[*^46^p1^p0
Color magenta prefix s:^15^[r^1^[*^46^p1^p0
Color cyan prefix s:^15^[r^2^[*^46^p1^p0
Init graphics before delay s:^\3^60^[U^1^[j^30^15^12
Init graphics after delay s:
Each single buffer terminated by s:^15^12
Finish graphics dump s:
Density 3 (default at Letter, 6 LPI) graphics
No of Raster Rows (pins) on each pass w: 24
Max dots in X direction l: 1440
Max dots in Y direction (0=infinite) l: 0
Dots pr inch in X direction w: 180
Dots pr inch in Y direction w: 180
Storage of dots in buffer
0: row by row (some laser/ink jet)
1: coloumn by column (dot matrix) b: 1
Fill buffer bytes from
0: right to left, 1: left to right b: 1
Pixel height divisor * 100
(e.g. DPaint 120, monitor image 100) w: 120
Sequence for printing colors
Print black as no. b: 4
--- yellow as no. b: 1
--- magenta (redish) as no. b: 2
--- cyan (blueish) as no. b: 3
Color black prefix s:^15^[r^0^[*^47^p1^p0
Color yellow prefix s:^15^[r^4^[*^47^p1^p0
Color magenta prefix s:^15^[r^1^[*^47^p1^p0
Color cyan prefix s:^15^[r^2^[*^47^p1^p0
Init graphics before delay s:^\3^60^[U^1^[j^30^15^12
Init graphics after delay s:
Each single buffer terminated by s:^15^12
Finish graphics dump s:
Density 4 (default at Letter, 8 LPI) graphics
No of Raster Rows (pins) on each pass w: 24
Max dots in X direction l: 2880
Max dots in Y direction (0=infinite) l: 0
Dots pr inch in X direction w: 360
Dots pr inch in Y direction w: 180
Storage of dots in buffer
0: row by row (some laser/ink jet)
1: coloumn by column (dot matrix) b: 1
Fill buffer bytes from
0: right to left, 1: left to right b: 1
Pixel height divisor * 100
(e.g. DPaint 120, monitor image 100) w: 120
Sequence for printing colors
Print black as no. b: 4
--- yellow as no. b: 1
--- magenta (redish) as no. b: 2
--- cyan (blueish) as no. b: 3
Color black prefix s:^15^[r^0^\Z^p1^p0
Color yellow prefix s:^15^[r^4^\Z^p1^p0
Color magenta prefix s:^15^[r^1^\Z^p1^p0
Color cyan prefix s:^15^[r^2^\Z^p1^p0
Init graphics before delay s:^\3^60^[U^1^[j^30^15^12
Init graphics after delay s:
Each single buffer terminated by s:^15^12
Finish graphics dump s: